package lv.ante.xwiki.latex;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import com.xpn.xwiki.XWikiContext;
import com.xpn.xwiki.api.Api;
import com.xpn.xwiki.plugin.XWikiDefaultPlugin;
import com.xpn.xwiki.plugin.XWikiPluginInterface;

public class LatexPlugin extends XWikiDefaultPlugin {

	private static final Log LOG = LogFactory.getLog(LatexPlugin.class);
	
	
	public LatexPlugin(String name, String className, XWikiContext context) {
		super(name, className, context);
		// TODO Auto-generated constructor stub
	}

	@Override
	public void init(XWikiContext context) {
		super.init(context);
	}

	@Override
	public String getName() {
		LOG.debug("Entered method getName");
		return "latex_plugin";
	}
	
    public Api getPluginApi(XWikiPluginInterface plugin, XWikiContext context) {
        return new LatexPluginApi((LatexPlugin) plugin, context);
    }


}
